package dq.study.designmodel.command;

/**
 * @author dongqun
 * @Description:
 * @date 2019/4/18 22:33
 */
public class Invoker {

    private Command command;

    public Invoker(Command command) {
        this.command = command;
    }

    public void action(){
        System.out.println("invoker send command...");
        command.execute();
    }

}
